import { createApp } from 'vue'
import App from './App.vue'
import 'amfe-flexible';

// 1.引入需要的组件
import { Form, Field, CellGroup, Button, Icon, Tab, Tabs, TreeSelect, Stepper, ActionBar, ActionBarIcon, ActionBarButton, Toast, Checkbox, CheckboxGroup, SubmitBar, ContactCard, Card, Dialog, AddressList, AddressEdit } from 'vant';
// 2.引入组件样式
import 'vant/lib/index.css';
// 引入路由
import router from './pages/router/';
import './common/css/base.less'
// vuex
import store from './store';
const app = createApp(App);
app.use(router)
app.use(Button).use(Icon).use(Tab).use(Tabs).use(TreeSelect).use(Stepper).use(ActionBar).use(ActionBarIcon).use(ActionBarButton).use(Toast).use(Checkbox).use(CheckboxGroup).use(SubmitBar).use(ContactCard).use(Card).use(Dialog)
app.use(store).use(AddressList).use(AddressEdit).use(Form).use(Field).use(CellGroup)
app.mount('#app')